package event;

import influence.Influence;

import java.util.ArrayList;
import java.util.List;

import run.LineCell;

import action.Action;

public class NearbyCellsEvent implements Event {

	private final int numNearbyCells;

	public NearbyCellsEvent(int numNearbyCells) {
		this.numNearbyCells = numNearbyCells;
	}

	public List<Influence> getOutputInfluences() {
		
		ArrayList<Influence> influences = new ArrayList<Influence>();
		influences.add(new Influence() {
			public Action getAction() {
				
				return new Action() {
					private boolean used = false;

					public void doAction(LineCell lineCell, Float scale) {
						lineCell.boostStroke(1f);
						used = true;
					}

					public boolean isActive() {
						return ! used;
					}
				};
			}

			public float getScale() {
				return 0;
			}
			
		});
		return influences;
	}

}
